﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.CallPolices.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.CallPolices
{
    /// <summary>
    /// 一键报警表服务接口
    /// </summary>
    public interface ICallPoliceAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 根据查询条件获取一键报警表列表
        /// </summary>
        Task<ListResultDto<CallPoliceListDto>> GetCallPolicesByWhereAsync(GetCallPoliceInput input);

        #endregion

        #region 一键报警表管理

        /// <summary>
        /// 根据查询条件获取一键报警表分页列表
        /// </summary>
        Task<PagedResultDto<CallPoliceListDto>> GetPagedCallPolicesAsync(GetCallPoliceInput input);

        /// <summary>
        /// 通过Id获取一键报警表信息进行编辑或修改 
        /// </summary>
        Task<GetCallPoliceForEditOutput> GetCallPoliceForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取一键报警表ListDto信息
        /// </summary>
        Task<CallPoliceListDto> GetCallPoliceByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改一键报警表
        /// </summary>
        Task CreateOrUpdateCallPoliceAsync(CreateOrUpdateCallPoliceInput input);





        /// <summary>
        /// 新增一键报警表
        /// </summary>
        Task<CallPoliceEditDto> CreateCallPoliceAsync(CallPoliceEditDto input);

        /// <summary>
        /// 更新一键报警表
        /// </summary>
        Task UpdateCallPoliceAsync(CallPoliceEditDto input);

        /// <summary>
        /// 删除一键报警表
        /// </summary>
        Task DeleteCallPoliceAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除一键报警表
        /// </summary>
        Task BatchDeleteCallPoliceAsync(List<long> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取一键报警表信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetCallPoliceToExcel();

        #endregion

        #region APP接口

        /// <summary>
        /// 新增一键报警表
        /// </summary>
        Task<CallPoliceEditDto> CreateCallPoliceAPPAsync(CallPoliceEditAPPDto input);

        #endregion
    }
}
